from peewee import *

#database = MySQLDatabase('test',{'host' : 'localhost','user':'root','password':'aa147258','port': 3306})

mysql_db = MySQLDatabase('my_database')

print mysql_db

class BaseModel(Model):
    """A base model that will use our MySQL database"""
    class Meta:
        database = mysql_db

class User(BaseModel):
    username = CharField()
    # etc, etc